//创建路由器并转发

//引入路由
import { createRouter, createWebHashHistory } from "vue-router";
//引入模块
import Father from "@/pages/Father.vue";
import Attr from "@/pages/Attr.vue";
import RefsT from "@/pages/Refs.vue";
import GrandParent from "@/pages/GrandParent.vue";
import Slot from "@/pages/Slot.vue";

const router = createRouter({
    history: createWebHashHistory(),
    routes: [
        {
            path: '/father',
            component: Father
        },
        {
            path: '/attr',
            component: Attr
        },
        {
            path: '/refs',
            component: RefsT
        },
        {
            path: '/grandParent',
            component: GrandParent
        },
        {
            path: '/slot',
            component: Slot
        }
        
        
        
    ]
})

export default router;